package com.jessechanrui.template.skeleton.common.base;

import com.jessechanrui.template.skeleton.common.constant.CommonConstant;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * DTO基类
 */
@Data
public class BaseDTO {
  @ApiModelProperty(value = "创建时间", hidden = true)
  @JsonFormat(pattern = CommonConstant.DATE_FORMAT, timezone = CommonConstant.TIME_ZONE)
  private Date createdDate;

  @ApiModelProperty(value = "创建人", hidden = true)
  private String createdBy;

  @ApiModelProperty(value = "修改时间", hidden = true)
  @JsonFormat(pattern = CommonConstant.DATE_FORMAT, timezone = CommonConstant.TIME_ZONE)
  private Date updatedDate;

  @ApiModelProperty(value = "修改人", hidden = true)
  private String updatedBy;

  @ApiModelProperty(value = "逻辑删除", hidden = true)
  private Boolean delFlag = false;
}
